package com.digitalchina.lxnsy.activity.old;

import android.os.Bundle;
import android.view.View;

import com.afollestad.materialdialogs.MaterialDialog;
import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.activity
 * 创建人：郑皓
 * 创建时间：2017/1/20 15:49
 * 修改备注：
 * ================================================
 */
public class AActivity extends BaseActivity {



    @Override
    public void setLayout() {
        setTitle("页面跳转");
        setContentLayout(R.layout.activity_a);
    }

    @Override
    public void initMember() {

    }

    @Override
    public void addListener() {

    }

    @Override
    public void setHandler() {

    }

    @Override
    public void callBack(Object object) {

    }

    @Override
    public void rightOnClick() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }


    @OnClick({R.id.bt_0, R.id.bt0, R.id.bt1, R.id.bt2, R.id.bt3, R.id.bt4, R.id.bt5, R.id.bt6, R.id.bt7, R.id.bt8, R.id.bt9, R.id.bt10})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bt_0:

                break;
            case R.id.bt0:
                go(ShareFarmManagerActivity.class);
                break;
            case R.id.bt1:
                go(ShareFarmListActivity.class);
                break;
            case R.id.bt2:
                go(ActivityManagerListActivity.class);
                break;
            case R.id.bt3:
                go(MyCollectActivity.class);
                break;
            case R.id.bt4:
                go(MyShareBuyOrderListActivity.class);
                break;
            case R.id.bt5:
                go(MyShareSellOrderListActivity.class);
                break;
            case R.id.bt6:
                new MaterialDialog.Builder(AActivity.this)
                        .title("请选择")
                        .items(R.array.setPassword)
                        .itemsCallback(new MaterialDialog.ListCallback() {
                            @Override
                            public void onSelection(MaterialDialog dialog, View itemView, int position, CharSequence text) {
                                if (position == 0)
                                    go(SetPayPasswordOneActivity.class);
                                else
                                    go(AmendPayPasswordActivity.class);

                            }
                        })
                        .show();
                break;
            case R.id.bt7:
                go(MyWalletActivity.class);
                break;
            case R.id.bt8:
                go(BankListActivity.class);
                break;
            case R.id.bt9:
                go(ShareFarmManagerActivity.class);
                break;
            case R.id.bt10:
                go(MyConsultListActivity.class);
                break;
        }
    }

}
